# -*- coding: utf-8 -*-
# PySide6使用元对象调用槽函数
# keywords : CustomWidgets,CustomGui,CustomControl,Template,PythonQT自定义控件,PySide6自定义控件

from PySide6.QtWidgets import (QWidget,QDialog,QMainWindow,QFrame,
                               QPushButton,QLineEdit,QTextEdit,
                               QLayout,QHBoxLayout,QVBoxLayout)

from PySide6.QtCore import (Qt,QObject,QMetaObject,
                            Signal,Slot,
                            QThread,QThreadPool,
                            QTemporaryFile,QTemporaryDir,
                            QJsonDocument,QJsonArray,
                            QFile,QFileDevice,QIODevice,QIODeviceBase)


class QtCustomWidget(QWidget):
    mysignal = Signal()
    
    def __init__(self, parent):
        super().__init__(parent)
        
    @Slot()
    def slot_fun(self):
        print("slot_fun")
        self.mysignal.emit()


    